﻿var config = {
    //load max
    cg: 4,
    people: 4,
    peopleHead: 4,
    bgm: 4,
    voice: 10,
    load: 4,
    //
    minresources: 3,
    //animate time
    cgAnimateTimeSpeed: 50,
    peopleAnimateTimeSpeed: 1000,
    textShowTimeSpeed: 30,
    boxAnimateTimeSpeed: 10,
    textShadowAnimateTimeSpeed: 100,
    //textbox
    textColor: "255,255,255",
    //
    helpPage: "help.aspx",
    audioType: $.browser.msie ? "mp3" : "ogg",
    //images
    imageLoaded: false,
    imageOnLoad: (function () {
        var i = 0;
        return function () {
            i++;
            if (i == 3)
                config.imageLoaded = true;
        }
    })(),
    msg: {
        0: "Load xml",
        1: "预加载资源过少",
        //warning
        11: "CG加载失败",
        12: "人物立绘加载失败",
        13: "Bgm加载失败",
        14: "Voice加载失败",
        15: "人物小头像加载失败"
    }
}
//config.loading_image = (function () {
//    return Tool.Image.Load("Images/System/loading.jpg", config.imageOnLoad);
//})();
config.error_peopleHead_image = (function () {
    return Tool.Image.Load("Images/System/error_peopleHead_image.jpg", config.imageOnLoad);
})();
//config.error_warning_image = (function () {
//    return Tool.Image.Load("Images/System/error_warning.png", config.imageOnLoad);
//})();
config.textBox_image = (function () {
    return Tool.Image.Load("Images/System/text_box.png", config.imageOnLoad);
})();
config.textBox_next_image = (function () {
    return Tool.Image.Load("Images/System/text_next2.png", config.imageOnLoad);
})();